include_rules = [
  # Don't depend on platform/ and ./testing/.
  "-third_party/blink/renderer/platform",
  "-third_party/blink/renderer/platform/media/testing",

  # Module.
  "+third_party/blink/renderer/platform/media",

  # Dependencies.
  "+base/task/bind_post_task.h",
  "+base/containers/circular_deque.h",
  "+base/strings/string_number_conversions.h",
  "+base/strings/utf_string_conversions.h",
  "+base/task/task_runner.h",
  "+base/task/task_runner_util.h",
  "+cc/layers",
  "+components/viz/common",
  "+media/audio/null_audio_sink.h",
  "+media/base",
  "+media/capabilities/bucket_utility.h",
  "+media/cdm",
  "+media/filters",
  "+media/learning/common",
  "+media/learning/mojo/public/cpp",
  "+media/media_buildflags.h",
  "+media/mojo/mojom",
  "+media/remoting/remoting_constants.h",
  "+net/base/data_url.h",
  "+net/base/net_errors.h",
  "+net/http/http_byte_range.h",
  "+net/http/http_version.h",
  "+services/device/public/mojom",
  "+third_party/blink/renderer/platform/platform_export.h",
  "+third_party/blink/renderer/platform/weborigin",
  "+third_party/blink/renderer/platform/wtf",
]

specific_include_rules = {
  ".*_unittest.*": [
    "+base/strings/string_split.h",
    "+base/task/current_thread.h",
    "+base/threading/thread.h",
    "+components/viz/test",
    "+media/mojo/services",
    "+media/renderers",
    "+gin/v8_initializer.h",
    "+mojo/core/embedder/embedder.h",

    # Allow test support dependencies.
    "+third_party/blink/renderer/platform/media/testing",
  ],
}

